home *** CD-ROM | disk | FTP | other *** search
- #
- #
- #
- |---------------B A T C H L R N H E L P S Y S T E M-----------------|
- |command: PAUSE |
- |use: To pass to a user control of a batch file while processing. |
- | |
- |how:Type:(in a batch file) PAUSE <Message, if any> |
- | |
- |example:Virtually every >BAT file on this disk has a PAUSE command. |
- | TIMEMASTER displays messages on a separate line so we can insert |
- | different colors for the message and the PAUSE instruction in the |
- | color versions of these files. |
- | |
- |NOTES: The basic function of PAUSE is to stop the execution of the |
- | batch file until you press a key. This can allow you to perform |
- | a necessary task -- like perhaps changing a disk or verifying that |
- | a particular disk configuration is in place, in order to avoid |
- | errors as the remaining parts of the batch file are executed. |
- | Pause will optionally display a message. |
- | The message will show, followed by the DOS message: |
- | Strike any key when ready... |
- | THE PAUSE SUBCOMMAND IN BATCH PROCESSING FILES... |
- | The PAUSE subcommand suspends execution of the batch file temporar- |
- | ily and displays the message "Strike any key when ready..." You |
- | can display messages in a batch file with the ECHO subcommand and |
- | then pause so the reader can read the message. These messages |
- | must precede the PAUSE command. A common method used in batch files |
- | is to display a message before a major command is issued, thus giv- |
- | ing the user a chance to break out of the batch file. Example: |
- | ECHO DRIVE C IS ABOUT TO BE ERASED... |
- | ECHO Press Ctrl-Break to stop or |
- | PAUSE |
- | The screen display would appear as follows: |
- | DRIVE C IS ABOUT TO BE ERASED... |
- | Press Ctrl-Break to stop or [also Ctrl C] |
- | Strike any key when ready... |
- | One of the most useful features of PAUSE is to allow a user to |
- | change diskettes between commands of a batch file. |
- | You can use the PAUSE command to segment a batch file into segments |
- | that can be stopped at any appropriate point. <comment> is optional |
- | and should be entered on the same line as PAUSE. <comment> is used |
- | to prompt -- with a meaningful message -- the batch file user to |
- | take some action when the file pauses. The <comment> is displayed |
- | before the "Strike any key when ready..." message. |
- |----------------- T I M E M A S T E R ---------------------|